package com.java0107;

import java.util.LinkedList;
import java.util.List;

public class Java02 {
    public static void main(String[] args) {
        //(2)list集合：有序集合LinkedList
        List<String> list = new LinkedList<String>();
        list.add("a");
        list.add("b");
        list.add("c");

        list.forEach(System.out::println);
        list.forEach(x->{
            System.out.println(x);
        });
    }
}
